package com.zhao.wechat.remote;

import com.zhao.wechat.remote.param.TianXinParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 第三方接口天行数据
 */
@FeignClient(value = "TianDataRemoteClient",url = "${tianxin.server}")
public interface TianDataRemoteClient {

	/**
	 * 获取彩虹屁
	 */
	@GetMapping(value = "/caihongpi/index",
			consumes = {MediaType.APPLICATION_JSON_VALUE},
			produces = {MediaType.APPLICATION_JSON_VALUE}
	)
	String queryRainbow(@SpringQueryMap TianXinParam tianXinParam);

	/**
	 * 获取每日一句
	 */
	@GetMapping(value = "/everyday/index",
			consumes = {MediaType.APPLICATION_JSON_VALUE},
			produces = {MediaType.APPLICATION_JSON_VALUE}
	)
	String queryEveryDay(@SpringQueryMap TianXinParam tianXinParam);

}
